<?php
module_load_include('inc', 'lastbuyer', 'ltod');

?>

<div class="lb-content-main-teaser">
	<div class="lb-content-left-teaser">
		<img alt="" width="600px"
			src="<?php print($node->last_buyer['image'])?>" />
	</div>
	<div class="lb-content-content-teaser">
		<div class="form-item">
			<label>Real price:</label> <span
				style="text-decoration: line-through"><?php print(lb_number_format($node->last_buyer['real_price'],0).$node->last_buyer['currency'])?>
			</span>
		</div>
		<div class="form-item">
			<label>Price:</label>
			<?php print(lb_number_format($node->last_buyer['price'],0).$node->last_buyer['currency'])?>&nbsp;(*)
		</div>
		<div class="form-item">
			<label>Sale off:</label>
			<?php print((($node->last_buyer['real_price']
			    -$node->last_buyer['price']>0)?(lb_number_format(($node->last_buyer['real_price']
			    -$node->last_buyer['price'])*100/$node->last_buyer['real_price'],2)):'0').'%')?>
		</div>
        <?php if($node->last_buyer['number_of_buy_in_day'] >0) : ?>
        <div class="form-item">
			<label>Number of Buy in day:</label>
			<?php print($node->last_buyer['number_of_buy_in_day'])?>
		</div>
        <?php endif; ?>
        <?php if($node->last_buyer['number_of_buy'] >0) : ?>
        <div class="form-item">
			<label>Number of Buy:</label>
			<?php print($node->last_buyer['number_of_buy'])?>
		</div>
        <?php endif; ?>
        <div class="form-item">
			<?php print(l('View Details','node/'.$node->last_buyer['nid'],array('attributes' => array('class'=>'css3Button'))))?>
		</div>
	</div>
</div>
